<div class="cities view">
<h2><?php  __('City');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $city['City']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $city['City']['name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('State'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($city['State']['name'], array('controller' => 'states', 'action' => 'view', $city['State']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Status'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $city['City']['status']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $city['City']['created']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $city['City']['modified']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="related">
	<h3><?php __('Related Employees');?></h3>
	<?php if (!empty($city['Employee'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Firstname'); ?></th>
		<th><?php __('Lastname'); ?></th>
		<th><?php __('Primaryemail'); ?></th>
		<th><?php __('Password'); ?></th>
		<th><?php __('Secondaryemail'); ?></th>
		<th><?php __('Address'); ?></th>
		<th><?php __('City Id'); ?></th>
		<th><?php __('Employeetype Id'); ?></th>
		<th><?php __('Pincode'); ?></th>
		<th><?php __('Residencephone'); ?></th>
		<th><?php __('Officephone1'); ?></th>
		<th><?php __('Officephone2'); ?></th>
		<th><?php __('Mobilephone'); ?></th>
		<th><?php __('Department Id'); ?></th>
		<th><?php __('Location Id'); ?></th>
		<th><?php __('Incomingemailaddress'); ?></th>
		<th><?php __('Status'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($city['Employee'] as $employee):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $employee['id'];?></td>
			<td><?php echo $employee['firstname'];?></td>
			<td><?php echo $employee['lastname'];?></td>
			<td><?php echo $employee['primaryemail'];?></td>
			<td><?php echo $employee['password'];?></td>
			<td><?php echo $employee['secondaryemail'];?></td>
			<td><?php echo $employee['address'];?></td>
			<td><?php echo $employee['city_id'];?></td>
			<td><?php echo $employee['employeetype_id'];?></td>
			<td><?php echo $employee['pincode'];?></td>
			<td><?php echo $employee['residencephone'];?></td>
			<td><?php echo $employee['officephone1'];?></td>
			<td><?php echo $employee['officephone2'];?></td>
			<td><?php echo $employee['mobilephone'];?></td>
			<td><?php echo $employee['department_id'];?></td>
			<td><?php echo $employee['location_id'];?></td>
			<td><?php echo $employee['incomingemailaddress'];?></td>
			<td><?php echo $employee['status'];?></td>
			<td><?php echo $employee['created'];?></td>
			<td><?php echo $employee['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'employees', 'action' => 'view', $employee['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'employees', 'action' => 'edit', $employee['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'employees', 'action' => 'delete', $employee['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $employee['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>
</div>
<div class="related">
	<h3><?php __('Related Locations');?></h3>
	<?php if (!empty($city['Location'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Name'); ?></th>
		<th><?php __('City Id'); ?></th>
		<th><?php __('Status'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($city['Location'] as $location):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $location['id'];?></td>
			<td><?php echo $location['name'];?></td>
			<td><?php echo $location['city_id'];?></td>
			<td><?php echo $location['status'];?></td>
			<td><?php echo $location['created'];?></td>
			<td><?php echo $location['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'locations', 'action' => 'view', $location['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'locations', 'action' => 'edit', $location['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'locations', 'action' => 'delete', $location['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $location['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>
</div>
<div class="related">
	<h3><?php __('Related Users');?></h3>
	<?php if (!empty($city['User'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Firstname'); ?></th>
		<th><?php __('Lastname'); ?></th>
		<th><?php __('Address'); ?></th>
		<th><?php __('City Id'); ?></th>
		<th><?php __('Pincode'); ?></th>
		<th><?php __('Residencephone'); ?></th>
		<th><?php __('Officephone1'); ?></th>
		<th><?php __('Officephone2'); ?></th>
		<th><?php __('Mobilephone'); ?></th>
		<th><?php __('Email1'); ?></th>
		<th><?php __('Email2'); ?></th>
		<th><?php __('Profession'); ?></th>
		<th><?php __('Leadsource Id'); ?></th>
		<th><?php __('Location Id'); ?></th>
		<th><?php __('Awarenesssource Id'); ?></th>
		<th><?php __('Preferredcommunication'); ?></th>
		<th><?php __('Sendmaterial'); ?></th>
		<th><?php __('Employee Id'); ?></th>
		<th><?php __('Status'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($city['User'] as $user):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $user['id'];?></td>
			<td><?php echo $user['firstname'];?></td>
			<td><?php echo $user['lastname'];?></td>
			<td><?php echo $user['address'];?></td>
			<td><?php echo $user['city_id'];?></td>
			<td><?php echo $user['pincode'];?></td>
			<td><?php echo $user['residencephone'];?></td>
			<td><?php echo $user['officephone1'];?></td>
			<td><?php echo $user['officephone2'];?></td>
			<td><?php echo $user['mobilephone'];?></td>
			<td><?php echo $user['email1'];?></td>
			<td><?php echo $user['email2'];?></td>
			<td><?php echo $user['profession'];?></td>
			<td><?php echo $user['leadsource_id'];?></td>
			<td><?php echo $user['location_id'];?></td>
			<td><?php echo $user['awarenesssource_id'];?></td>
			<td><?php echo $user['preferredcommunication'];?></td>
			<td><?php echo $user['sendmaterial'];?></td>
			<td><?php echo $user['employee_id'];?></td>
			<td><?php echo $user['status'];?></td>
			<td><?php echo $user['created'];?></td>
			<td><?php echo $user['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'users', 'action' => 'view', $user['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'users', 'action' => 'edit', $user['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'users', 'action' => 'delete', $user['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>
</div>